using System;
using System.ComponentModel;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;

using DevExpress.ExpressApp;
using DevExpress.ExpressApp.Actions;
using DevExpress.Persistent.Base;
using DevExpress.ExpressApp.Web.SystemModule;

namespace CRMSolution.Module.Web
{
    public partial class WebNewViewControllerNew : WebNewObjectViewController
    {
        public WebNewViewControllerNew()
        {
            InitializeComponent();
            RegisterActions(components);
        }

        private void WebNewViewControllerNew_CollectDescendantTypes(object sender, DevExpress.ExpressApp.SystemModule.CollectTypesEventArgs e)
        {
            //Type self = View.ObjectTypeInfo.Type;
            //if (self.IsAbstract && self.Equals(typeof(CommonCategory)))
            //{
            //    if (e.Types.Count == 2)
            //    {
            //        e.Types.Clear();
            //        if (Frame.Context == TemplateContext.NestedFrame)
            //        {
            //            e.Types.Add((Frame as NestedFrame).DetailViewItem.CurrentObject.GetType());
            //        }
            //    }
            //}
        }
    }
}
